package com.hq.base.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 卢杰
 * @since 2021-04-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ApiNews对象", description="")
public class ApiNews implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "新闻时间")
    private Date date;

    @ApiModelProperty(value = "新闻分类")
    private String category;

    @ApiModelProperty(value = "新闻来源")
    private String authorName;

    @ApiModelProperty(value = "新闻访问链接")
    private String 	newsUrl;

    @ApiModelProperty(value = "新闻图片URL")
    private String thumbnailPic;

    @ApiModelProperty(value = "	是否有新闻内容,1表示有 可以通过查询新闻详细内容小接口获取新闻内容")
    private Integer isContent;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer isDelete;


}
